JavaScript

A5.u.jsonpreparse Method

Syntax

A5.u.json.preparse(object)

Arguments

objectobjectarray

The object or array to parse.

Description

Convert all data types (such as date and function) in passed in object that cannot be converted to a JSON string into special objects that can be converted back into there original type by using the A5.u.json.postparse.

Example

var obj = {name: 'Bob', dob: new Date(1976,5,1)};
A5.u.json.preparse(obj);